<?php
function dialogHeader($id,$up,$title,$bg="sm"){
?>
<div id="<?php echo $id; ?>" class="modal fade">
    <div class="modal-dialog <?php echo $bg!=""?"modal-$bg":""; ?>">
        <div class="modal-content">
            <form class="form-horizontal f" action="<?php echo $up; ?>" method="post">
                <div class="modal-header">
                    <div class="modal-title">
                        <?php echo $title; ?>
                    </div>
                </div>

                    <?php }
function dialogFooter($footer){  ?>
                <div class="modal-footer">
                    <?php if($footer==1){ ?>
                    <button  type="submit" class="btn btn-primary ds" data-dismiss="modal">确定</button>
                    <?php } ?>
                    <button  type="button" class="btn btn-default db" data-dismiss="modal">返回</button>
                </div>
            </form>
        </div>
    </div>
</div>
<?php } ?>